//
//  FourCollectionViewCell.m
//  ZhiBoYuan
//
//  Created by apple on 2018/4/18.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "FourCollectionViewCell.h"
#import "BannerModel.h"
@interface FourCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *adImage;

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;


@end

@implementation FourCollectionViewCell

- (void)setBanner:(BannerModel *)banner {
    _banner = banner;
    [self.adImage setImageWithURL:[NSURL URLWithString:banner.app_img_url]
                      placeholder:[UIImage imageNamed:@"banner"]];
    
    self.titleLabel.text = banner.name;
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

@end
